#ifndef _DISP_H_
#define _DISP_H_

#ifndef TRUE
#	define TRUE 	1
#endif

#ifndef FALSE
#	define FALSE 	0
#endif


#define SEGMENT_DIGIT_MAX  5

#define SEGMENT_O		   0
#define SEGMENT_ALL_OFF    10
#define SEGMENT_ALL_ON     11
#define SEGMENT_DOT		   12
#define SEGMENT_DOT1   	   13
#define SEGMENT_DOT2   	   14
#define SEGMENT_COLON	   15
#define SEGMENT_QUOTE	   16
#define SEGMENT_DAT		   17
#define SEGMENT_N		   18
#define SEGMENT_F   	   19
#define SEGMENT_D   	   20
#define SEGMENT_C		   21
#define SEGMENT_U   	   22
#define SEGMENT_R   	   23


#define SEGMENT_BLINK_AUTO	   20
#define SEGMENT_BLINK_ON	   21
#define SEGMENT_BLINK_OFF	   22


void InitDisp( void );
void TimeDisp( void );
void DispTask( void );
void DispMail(unsigned char act, unsigned char size, char * pbuf);




#endif //_DISP_H_
